'use strict';

const advertController = require('../../app/controller/advert.controller.js');

module.exports = function(app) {
    app.route('/advert/add')
        .post(advertController.receiveAdvert);
    app.route('/advert/modify')
        .post(advertController.update);
    app.route('/advert/get/:status')
        .get(advertController.getBystatus);
    app.route('/advert/getnot/:status')
        .get(advertController.getByNotstatus);
    app.route('/advert/getonordown')
        .get(advertController.getOnOrdown);
};